package chen.yi.component.common.exception;

import lombok.Getter;

/**
 * 自定义异常
 * @author huat
 **/
@Getter
public class BizException extends RuntimeException{
    private final int code;
    private final String message;

    public BizException(int code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }
}
